<?php

$servername = "127.0.0.1:3306";
$username = "root";
$password = "168168";
header("Content-Type: text/html;charset=utf-8");
// 创建连接
$conn = new mysqli($servername, $username, $password,"dms");
$conn->query("SET NAMES utf8");

// 检测连接
if ($conn->connect_error) {
    die($conn->connect_error);
}

